<h2 class="contentTitle">表单验证</h2>


<div class="pageContent">
	
	{if $action_name=='addattr'}
	<form method="post" action="{:U($module_name.'/insertarray')}" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone);">
	{else}
	<form method="post" action="{:U($module_name.'/updatearray')}" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone);">
	{if $info['id']}
		<input type="hidden" name="id" value="{$info['id']}" />
	{/if}

	{/if}
		<div class="pageFormContent nowrap" layoutH="97">
			<dl>
				<dt>分类：</dt>
				<dd>
					<select name="category_id" >
						<option value="">请选择分类</option>
						<volist name="cate" id="c">
							<option value="{$c['id']}" {if $c['id']==$info['category_id']}selected='selected'{/if}>{$c['name']}</option>
						</volist>
					</select>
				</dd>
			</dl>
			<dl>
				<dt>分组名：</dt>
				<dd>
					<input type="text" name="code" maxlength="20" class="required"  
					 alt="请输入分组名" value="{$info['code']}"/>
				</dd>
			</dl>

			<dl>
				<dt>状态：</dt>
				<dd>
					<select name="status" class="required">
						<option value="1" {if $info['status']&&$key==$info['status']}selected='selected'{/if}>支持搜索</option>						
						<option value="0" {if $info['status']&&$key==$info['status']}selected='selected'{/if}>不支持搜索</option>						
					</select>
				</dd>
			</dl>
		</div>
			<div class="formBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
					<li>
						<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
					</li>
				</ul>
			</div>		
	</form>
	
</div>

